package com.atguigu.spzx.product.service.impl;

import com.atguigu.spzx.model.entity.product.ProductSku;
import com.atguigu.spzx.product.mapper.ProductSkuMapper;
import com.atguigu.spzx.product.service.ProductSkuService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: ProductSkuServiceImpl
 * Package: com.atguigu.spzx.product.service.impl
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/14 12:48
 * @Version 1.0
 */
@Service
public class ProductSkuServiceImpl implements ProductSkuService {
    @Resource
    private ProductSkuMapper productSkuMapper;
    /**
     * 查询畅销商品 --> 根据销量查询
     * @return
     */
    @Override
    public List<ProductSku> findProductSkuBySale() {
        return productSkuMapper.findProductSkuBySale();
    }
}
